1:1 Stable Pools
The 1:1 Stable Pools are designed to facilitate cross-chain liquidity transfers of stablecoins, ETH and other 1:1 traded assets across chains. The 1:1 Stable Pools uses the concept of a unified liquidity pool instead of separate pools for each chain pair.
These pools are governed by Delta Algorithm and provide instant guaranteed finality, high capital efficiency, and a seamless user experience.
Overview of the Delta Algorithm
The Delta Algorithm enables transactions using native assets without the need for intermediate or wrapped tokens. The Algorithm supports a unified liquidity pool across multiple chains, ensuring instant guaranteed finality and cross-chain composability.
Formulas and Liquidity Calculations
The Delta Algorithm is based on the concept of soft-partitioned liquidity, where each liquidity pool is conditionally divided among all connected chains.
Let:
- - current size of the liquidity pool on the local chain S
- - liquidity balance available for transfers from chain S to chain D
- - weight that describes the portion of liquidity allocated for transfers between chains S and D
The goal of the Algorithm is to maintain the following relationship:
When a user initiates a transfer of units of liquidity from chain S to chain D, the Algorithm checks whether there are enough funds on chain D to complete the transfer. If the balance is insufficient, the transfer is rejected i.e., If , then the transfer is rejected.
If the balance is sufficient, the transfer is accepted, and the liquidity is updated:
Next, the Delta Algorithm redistributes liquidity to restore the balance between connected chains using the following steps:
- The difference () between the current balance and the desired balance is calculated:
- This difference is distributed among all connected chains proportionally to their weights.
If the total amount of redistributed liquidity is less than the current transaction (), the remaining amount () is also distributed proportionally to the weights:
Example 1: Transfer from Chain X to Chain Y
Let:
- user initiates a transfer of from chain X to chain Y
The balance on Y is checked: , which is greater than 40, so the transfer is not rejected.
The balance on X is updated:
- The liquidity redistribution is calculated:
Let:
Since the weights are equal, the remainder is evenly split:
Example 2: Transfer from Chain Y to Chain Z
The balance on Z is checked: , which is greater than 30, so the transfer is not rejected.
The balance on Y is updated:
- The liquidity redistribution is calculated:
Thus, the total amount of liquidity that is redistributed is 30, and these amounts are recorded as credits for future transfers.
Cross-Chain Composability
The Delta Algorithm allows cross-chain operations within a single transaction. For example, a user can:
- Exchange stablecoins for ETH on chain A
- Transfer ETH to chain B using the Delta Algorithm
- Immediately after the transfer, exchange ETH for USDC on chain B
All these operations can be performed within a single transaction, significantly simplifying the process for the user.